export default {
    bind(el, binding, vnode){

        console.log(el);
        console.log(binding);//['nav_item', {'nav_active':isActiveId === activeId}]

        let val = binding.value;
        let attr = binding.arg; //"class"  "flag


        el.setAttribute(attr, val);

        /*let classStr = "";
        val.forEach((item)=>{
            if(typeof item !== "string"){
                for (let key in item){
                    if(item[key]){
                        classStr += ' ' + key
                    }
                }
            }else {
                classStr += ' ' + item
            }
        });*/

        // console.log(el.getAttribute(attr));
        // el.setAttribute(attr, classStr);
    },




}